/** 设备api */
import { INAPSDevice } from "@/types/APSData";
import { deviceApi } from "../utils/request";
// http://192.168.100.14:37383

/** 请求设备列表，实际运行时间（runtime） */
export const getDeviceParam = () =>
  deviceApi<{data:INAPSDevice[]}>({
    url: "/mes/basic/screenData/getDeviceParam",
    method: "get",
  });

/** 查询当月保养数量 */
export const getDeviceMaintenance = () =>
  deviceApi({
    url: "/mes/basic/screenData/getDeviceMaintenance",
  });

/** 查询维修排行 */
export const getDeviceRepairRank = () =>
  deviceApi({
    url: "/mes/basic/screenData/getDeviceRepairRank",
  });
